// 车辆信息模块

const express = require('express')

const router = express.Router()

const carHandler = require('../router_handler/car')

// 添加车辆
router.post('/car/add', carHandler.carAdd)
// 获取车辆列表
router.post('/car/list', carHandler.getCarList)
// 删除车辆
router.get('/car/delete', carHandler.carDelete)
// 修改禁启用状态
router.get('/car/changeEnable', carHandler.changeEnable)
// 获取车辆详情
router.get('/car/detail', carHandler.getCarDetaik)
// 编辑车辆
router.post('/car/edit', carHandler.carEdit)
// 获取车辆属性
router.post('/car/attr', carHandler.getCarAttr)
// 获取品牌列表
router.get('/car/brandList', carHandler.getBrandList)
// 获取停车场列表
router.get('/car/parkingList', carHandler.getParkingList)


// web端
// 获取指定停车场的车辆信息
router.get('/web/cars', carHandler.getCarsInParking)


module.exports = router